   
<div class="modal-header">
    <button type="button" class="close" ng-click="cancel()">×</button>
    <i class="fa fa-inbox"></i><span class="label label-tag label-primary">编辑知识库文档</span>
</div>
<div class="modal-body">
    <input type="hidden" id="approveTime" name="approveTime">
    <input type="hidden" id="approveUserId" name="approveUserId">
    <input type="hidden" id="createTime" name="createTime">
    <input type="hidden" id="createrUserId" name="createrUserId">
    <input type="hidden" id="hits" name="hits">
    <input type="hidden" id="renewTime" name="renewTime">
    <input type="hidden" id="renewUserId" name="renewUserId">
    <input type="hidden" id="status" name="status">
    <input type="hidden" id="relateId" name="relateId">
    <input type="hidden" id="id" name="id">
    <input type="hidden" id="vision" name="vision">
  <tabset class="tabbable">
    <tab heading="编辑知识库">
    <div class="row form-group" ng-class="{'has-error': showError('title')}">
            <label class="col-md-2 control-label" for="title">
                    标题:
            </label>
            <div class="col-md-9">
                <input  id="title" name="title" ng-model="entity.title" class="form-control"  placeholder="标题" />
            </div>
    </div>
   <!--  <div class="row form-group">
           <label class="col-md-2 control-label" for="vision">
                    版本:
            </label>
           <div class="col-md-9">
                <select  id="version" class="form-control"  
                    ng-model="entity.vision"  data-placeholder="选择版本">
                    <option ng-repeat="r in visions" value="{{r.vision}}" ng-selected="{{r.vision == entity.vision}}" >V{{r.vision}}</option>
                </select> 
            </div>  
    </div> -->
    <div class="row form-group" ng-class="{'has-error': showError('vision')}">
        <label class="col-md-2 control-label" for="vision">版本:</label>
        <div class="col-md-9">
          <input  class="form-control" id="vision" name="keywords" ng-model="entity.vision2"   placeholder="选择版本" disabled="true"/>
          <input  class="form-control" id="vision" name="keywords" type="hidden" ng-model="entity.vision"   placeholder="选择版本" disabled="true"/>
        </div> 
    </div>
    <div class="row form-group" ng-class="{'has-error': showError('keys')}">
         <label class="col-md-2 control-label" for="keys">关键字:</label>
         <div class="col-md-9">
               <input  class="form-control" id="keys" name="keywords" ng-model="entity.keys"   placeholder="关键字" />
         </div> 
    </div>

    <div class="row form-group" ng-class="{'has-error': showError('typeId')}">
        <label class="col-md-2 control-label" for="type">分类:</label>
        <div class="col-md-9">
            <div class="form-group">
                <div class="input-group">
                  <input type="text" class="form-control" ng-model="entity.typeName" placeholder="分类..."/>
                  <span class="input-group-btn">
                    <button type="button" class="btn btn-warning" ng-click="chooseknowledge()">
                      <i class="fa fa-search"></i>  
                    </button></span>
                </div>
            </div>
            <input type="hidden" id="typeid" name="typeId" ng-model="entity.typeId"/>
            <!-- <div class="form-group">
                <div class="input-group">
                  <input type="text" class="form-control" name="masked" placeholder="分类" ng-model="createSolution.typeName">
                  <span class="input-group-btn">
                    <button type="button" class="btn btn-primary" ng-click="chooseknowledge()">
                      选择
                    </button> </span>
                  <input type="hidden" id="typeid" name="typeId" ng-model="createSolution.typeId">
                </div>
            </div> -->
            <div class="panel panel-white" id="panel5" ng-if="showknowledgeType" >
              <button type="button" style="margin-left:94%" ng-click="close()">×</button>
              <div class="panel-heading">
                <h4 class="panel-title">知识库分类 </h4>
                <!-- <ct-paneltool class="panel-tools" tool-collapse="tool-collapse"></ct-paneltool> -->
              </div>
              <div class="panel-wrapper"> <!--collapse="panel5" ng-init="panel5=false" -->
                <div class="panel-body">
                  <abn-tree tree-data="data" tree-control="create_tree" on-select="tree_handler(branch)" icon-leaf="ti-file" icon-expand="ti-plus" icon-collapse="ti-minus"></abn-tree>
                </div>
              </div>
            </div>
        </div> 
    </div>

    <div class="row form-group" ng-class="{'has-error': showError('range')}">
         <label class="col-md-2 control-label" for="range">使用范围:</label>
         <div class="col-md-9">
            <ui-select ng-model="entity.range" theme="bootstrap">
                <ui-select-match placeholder="选择使用范围">
                      {{$select.selected.name}}
                </ui-select-match>
                <!-- <select   class="form-control"  
                                         ng-model="entity.range"  data-placeholder="选择使用范围">
                                                <option ng-repeat="r in ranges" value="{{r.id}}">{{r.name}}</option>
                                        </select>    -->
                <ui-select-choices  repeat="item in ranges | filter: $select.search">
                      <div ng-bind-html="item.name | highlight: $select.search"></div>
                      <!-- <small ng-bind-html="item.id | highlight: $select.search"></small> -->
                </ui-select-choices>
            </ui-select>
           <!--  {{entity.range}} -->
              <!-- <select class="cs-select cs-skin-elastic" ng-model="createSolution.range">
                  <option value="" disabled selected>选择使用范围</option>
                  <option ng-repeat="r in ranges" value="{{r.id}}">{{r.name}}</option>
              </select>    -->
        </div> 
    </div>
         
    <div class="row form-group" ng-class="{'has-error': showError('number')}">
            <label class="col-md-2 control-label" for="number">知识库编号:</label>
            <div class="col-md-9" style="z-indx:1px;">
              <input  id="number" ng-model="entity.number" name="solutionNumber" class="form-control"  placeholder="知识库编号" editabled="false"> 
            </div>             
    </div>
    <div class="row form-group"  ng-show="entity.remark"> 
        <label class="col-md-2 control-label" for="remark">驳回意见：</label> 
        <div class="col-md-9">
          <textarea  id="reasonval" ng-model="entity.remark" class="form-control"></textarea>
        </div> 
    </div>
   <div class="row form-group" ng-class="{'has-error': showError('content')}">
            <label class="col-md-2 control-label" for="content">知识库内容:</label>
            <div class="col-md-9" style="z-indx:1px;" >
                <div ckeditor="options" ng-model="entity.content" ready="onReady()"></div>
                <!-- <div class="well margin-top-20">
                  {{content}}
                </div> -->
            </div>             
    </div>
    
   <div class="row form-group" ng-class="{'has-error': showError('file')}">
        <div class="col-md-2">
          <div class="checkbox clip-check check-primary checkbox-inline">
                  <input type="checkbox" id="checkbox10" ng-model="hasAttachment">
                  <label for="checkbox10">
                    <span class="lbl"  style="margin-left:12px">附件</span>
                    <a  href="{{solutionDowpath}}/{{entity.id}}"  tooltip="下载">
                        <img src="{{entity.filePic}}" >
                     
                    {{entity.fileName}}</a>
                  </label>
          </div> 
        </div>
    </div>
        <div class="col-md-8" ng-if="hasAttachment" style="margin-top:50px">
            <span class="dz-text-small">提示：上传txt文档以及Office文档不能超过10M,其他文档不能超过200M</span>
            <div class="panel panel-white">
              <div class="panel-body">
                <div class="row">
                   
                  <div class="col-md-6">
                    <span class="btn btn-primary btn-o btn-file"> 上传文件
                      <input name="uploadedFile" type="file" nv-file-select="" uploader="uploader" />
                    </span>
                  </div>
                </div>
                <div class="row">
                  <div ng-repeat="item in uploader.queue">
                    <span class="dz-text-small"> 上传的文件: <strong>{{item.file.name }}</strong> </span>
                  </div>
                </div>
              </div>
            </div>
        </div>
        <div class="modal-footer" >
          <button class="btn btn-primary" ng-click="ok()" translate="modal.button.OK">OK</button>
          <button class="btn btn-primary btn-o" ng-click="cancel()" translate="modal.button.CANCEL">Cancel</button>
        </div>
      </tab>
      <tab heading="知识库历史记录">
        <form role="form" class="form-horizontal">
          <div class="row form-group" ng-class="{'has-error': showError('createTime')}">
            <label class="col-md-3 control-label" for="createTime">
                  创建时间:
            </label>
            <div class="col-md-8">
                <input  id="createTime" name="createTime" ng-model="entity.createTime" class="form-control"  placeholder="创建时间" disabled="true"/>
            </div>
          </div>
          <div class="row form-group" ng-class="{'has-error': showError('createrUserName ')}">
            <label class="col-md-3 control-label" for="createrUserName ">
                  创建者名称:
            </label>
            <div class="col-md-8">
                <input  id="createrUserName " name="createrUserName " ng-model="entity.createrUserName " class="form-control"  placeholder="创建者名称" disabled="true"/>
            </div>
          </div>
          <div class="row form-group" ng-class="{'has-error': showError('renewTime')}">
            <label class="col-md-3 control-label" for="renewTime  ">
                   最近更新时间:
            </label>
            <div class="col-md-8">
                <input  id="renewTime" name="renewTime" ng-model="entity.renewTime" class="form-control"  placeholder=" 最近更新时间" disabled="true"/>
            </div>
          </div>
          <!-- <div class="row form-group" ng-class="{'has-error': showError('updateTime')}">
            <label class="col-md-3 control-label" for="updateTime">
                   最后更新时间:
            </label>
            <div class="col-md-8">
                <input  id="updateTime  " name="updateTime" ng-model="entity.updateTime" class="form-control"  placeholder=" 最后更新时间" disabled="true"/>
            </div>
          </div> -->
          <div class="row form-group" ng-class="{'has-error': showError('renewUserName')}">
            <label class="col-md-3 control-label" for="renewUserName">
                  修改人名称:
            </label>
            <div class="col-md-8">
                <input  id="renewUserName" name="renewUserName" ng-model="entity.renewUserName" class="form-control"  placeholder="修改人名称" disabled="true"/>
            </div>
          </div>
          <div class="row form-group" ng-class="{'has-error': showError('approveUserName')}">
            <label class="col-md-3 control-label" for="approveUserName">
                  审核人名称:
            </label>
            <div class="col-md-8">
                <input  id="approveUserName " name="approveUserName" ng-model="entity.approveUserName" class="form-control"  placeholder="审核人名称" disabled="true"/>
            </div>
          </div>
          <div class="row form-group" ng-class="{'has-error': showError('approveTime')}">
            <label class="col-md-3 control-label" for="approveTime">
                  批准时间:
            </label>
            <div class="col-md-8">
                <input  id="approveTime" name="approveTime" ng-model="entity.approveTime" class="form-control"  placeholder="批准时间" disabled="true"/>
            </div>
          </div>
        </form>
    </tab>
  </tabset>
</div>
  <!-- <div class="modal-footer" >
    <button class="btn btn-primary" ng-click="ok()" translate="modal.button.OK">OK</button>
    <button class="btn btn-primary btn-o" ng-click="cancel()" translate="modal.button.CANCEL">Cancel</button>
  </div> -->
  